<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>- 登录</title>
<link href="/hadmin/css/bootstrap.min.css" rel="stylesheet">
<link href="/hadmin/css/font-awesome.css" rel="stylesheet">
<link href="/hadmin/css/animate.css" rel="stylesheet">
<link href="/hadmin/css/style.css" rel="stylesheet">
<link href="/hadmin/css/login.css" rel="stylesheet">
<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
<script>
	if (window.top !== window.self) {
		window.top.location = window.location;
	}
</script>

</head>

<body class="signin">
	<div class="signinpanel">
		<div class="row">
			<div class="col-sm-12">
				<div th:class="${message!=null}? 'alert alert-danger' : ''" th:text="${message}"></div>
				<form method="post" action="/admin/login" id="frm">
					<input type="text" class="form-control uname" name="username" id="username" placeholder="用户名" /> <input type="password"
						class="form-control pword m-b" name="password" id="password" placeholder="密码" /> <a href="" class="forget">忘记密码了？</a>
					<button class="btn btn-success btn-block">登录</button>
				</form>
			</div>
		</div>
	</div>

	<!-- 全局js -->
	<script src="/hadmin/js/jquery.min.js?v=2.1.4"></script>
	<script src="/hadmin/js/bootstrap.min.js?v=3.3.6"></script>

	<!-- 自定义js -->
	<script src="/hadmin/js/content.js?v=1.0.0"></script>

	<!-- jQuery Validation plugin javascript-->
	<script src="/hadmin/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="/hadmin/js/plugins/validate/messages_zh.min.js"></script>
	<script type="text/javascript">
		$().ready(function() {
			// 在键盘按下并释放及提交后验证提交表单
			$("#frm").validate({
				rules : {
					username : {
						required : true,
						minlength : 2
					},
					password : {
						required : true,
						minlength : 5
					}
				},
				messages : {
					username : {
						required : "请输入用户名",
						minlength : "用户名必需由两个字母组成"
					},
					password : {
						required : "请输入密码",
						minlength : "密码长度不能小于 6 个字母"
					}
				},
				submitHandler : function(form) {
					form.submit();
				}
			});
		});
	</script>
</body>

</html>
